package com.huarui.payInvoiceItem.service;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.model.ListModel;
import org.ewaf.framework.service.BaseService;

import com.huarui.payInvoiceItem.dao.IPayInvoiceItemDao;

public class PayInvoiceItemService extends BaseService{
	
	
	private IPayInvoiceItemDao getDao(){
		return (IPayInvoiceItemDao)dao;
	}
	
	@SuppressWarnings("unchecked")
	public List<Map> getPayInvoiceItemByConditions(Map map){
		return this.getDao().getPayInvoiceItemByConditions(map);
	}

	@SuppressWarnings("unchecked")
	public List<Map> getPayInvoiceItemByConditions(ListModel<Map> lm,Map map) {
		Integer total=getDao().getPayInvoiceItemCountByConditions(map);
		lm.setTotal(total);
		map.put("listModel", lm);
		List<Map> retList=getDao().getPayInvoiceItemByConditions(map);
		lm.setResult(retList);
		return retList;
	}
	
}
